package com.kuangstudy.test;

/**
 * @author Losca
 * @date 2022/3/22 23:31
 */
public class Demo5 {
    public static void main(String[] args) {
        Person person = new Person();
        System.out.println(person.name);//null
        change(person);
        System.out.println(person.name);//losca
    }

    private static void change(Person person) {
        person.name = "losca";
    }
}

class Person{
    String name;
}
